//#define __DEBUG__
// by Xeno
#define THIS_FILE "x_netinit.sqf"
#include "x_setup.sqf"

GVAR(event_holder) = GVAR(HeliHEmpty) createVehicleLocal [0, 0, 0];
if (isServer) then {
	GVAR(event_holderCTS) = GVAR(HeliHEmpty) createVehicleLocal [0, 0, 0];
};
GVAR(event_holderSTO) = GVAR(HeliHEmpty) createVehicleLocal [0, 0, 0];
if (!isDedicated) then {
	GVAR(event_holderToClients) = GVAR(HeliHEmpty) createVehicleLocal [0, 0, 0];
};

QGVAR(negl) addPublicVariableEventHandler {
	(_this select 1) call FUNC(NetRunEvent);
};

if (isServer) then {
	QGVAR(ncts) addPublicVariableEventHandler {
		(_this select 1) call FUNC(NetRunEventCTS);
	};
};

QGVAR(nsto) addPublicVariableEventHandler {
	(_this select 1) call FUNC(NetRunEventSTO);
};

if (!isDedicated) then {
	QGVAR(nstc) addPublicVariableEventHandler {
		(_this select 1) call FUNC(NetRunEventToClients);
	};
};